package com.victor.job.controller;

import com.victor.common.core.constant.VersionConstant;
import com.victor.common.core.domain.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 * 版本号
 * </p>
 *
 * @author
 * @since
 */
@Api(tags = "版本号")
@RestController
@RequestMapping("/version")
public class VersionController {
    @GetMapping("/getJobVersion")
    @ApiOperation(value = "获取版本号")
    public R<String> getJobVersion() {
        return R.ok(VersionConstant.VERSION);
    }
}
